package com.cdtu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cdtu.entity.SysMenu;
import com.cdtu.service.SysMenuService;
import com.cdtu.mapper.SysMenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Sakura
* @description 针对表【sys_menu】的数据库操作Service实现
* @createDate 2023-08-08 16:07:43
*/
@Service
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu>
    implements SysMenuService{

    @Autowired
    private SysMenuMapper menuMapper;

    @Override
    public List<SysMenu> queryLoginUserMyPMenuByEmpId(Long m_id) {
        return menuMapper.queryLoginUserMyPMenuByEmpId(m_id);
    }

    @Override
    public List<SysMenu> queryMenuSonByM_id(Long menuId) {
        return menuMapper.queryMenuSonByM_id(menuId);
    }
}




